package com.lrkj.waitress.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 路线管理对象 tb_path
 *
 * @author yajun_ren
 * @date 2022-03-22
 */
@Data
public class Path extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 小区ID */
    @Excel(name = "小区ID")
    private String communityId;

    /** 路线名称 */
    @Excel(name = "路线名称")
    private String pathName;

    /** 巡逻人员 */
    @Excel(name = "巡逻人员")
    private String crulserId;

    /** 巡逻开始时间 */
    @Excel(name = "巡逻开始时间")
    private String crulserBegin;

    /** 巡逻结束时间 */
    @Excel(name = "巡逻结束时间")
    private String crulserEnd;

    /** 巡逻类型 */
    @Excel(name = "巡逻类型")
    private String crulserType;

    /** 部门ID */
    private String deptId;

    /** 祖父ID */
    private String ancestors;

    private String nickName;

    private List<PathDetail> pathDetailList;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("pathName", getPathName())
            .append("crulserId", getCrulserId())
            .append("crulserBegin", getCrulserBegin())
            .append("crulserEnd", getCrulserEnd())
            .append("crulserType", getCrulserType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("deptId", getDeptId())
            .append("ancestors", getAncestors())
                .append("PathDetailList", getPathDetailList())
            .toString();
    }
}
